<extend name="Public/base"/>

<!-- 子导航 -->
<block name="sidebar">
    <include file="sidemenu"/>
</block>

<block name="body">

    <div class="main-title">
        <h2>
            编辑招聘信息
        </h2>
    </div>
    <!-- 表单 -->
    <form id="form" action="{:U('update')}" method="post" class="form-horizontal" enctype="multipart/form-data">
        <!-- 基础文档模型 -->
        <div id="tab" class="tab-pane">
            <div class="form-item">
                <div class="controls">
                    <label class="item-label">招聘职位</label>
                    <input type="text" class="text input-large" required name="title" value="{$recruit['title']}">
                </div>
            </div>
            <div class="form-item">
                <div class="controls">
                    <label class="item-label">公司名称</label>
                    <input type="text" class="text input-large"  required name="comname" value="{$recruit['comname']}">
                </div>
            </div>
            <div class="form-item">
                <div class="controls">
                    <label class="item-label">电 话</label>
                    <input type="text" class="text input-large" required name="telphone" value="{$recruit['telphone']}">
                </div>
            </div>
            <div class="form-item">
                <div class="controls">
                    <label class="item-label">工作地点</label>
                    <input type="text" class="text input-large" required name="address" value="{$recruit['address']}">
                </div>
            </div>
            <div class="form-item">
                <label class="item-label">是否展示</label>
                <div class="controls">
                    <label class="radio"><input type="radio" name="show" value="0" <eq name="recruit['show']" value="0">checked</eq>>否</label>
                    <label class="radio"><input type="radio" name="show" value="1" <eq name="recruit['show']" value="1">checked</eq>>是</label>
                </div>
            </div>
            <div class="form-item">
                <label class="item-label">详细内容</label>
                <textarea name="message">{$recruit['message']}</textarea>
                {:hook('adminArticleEdit', array('message'=>$field['message'],'message'=>$field['message']))}
            </div>
        </div>

        <input type="text" hidden name="id" value="{$recruit['id']}">
        <div class="form-item">
            <button class="btn btn-success submit-btn ajax-post" id="submit" type="submit" target-form="form-horizontal">确 定</button>
            <button class="btn btn-return" onclick="javascript:history.back(-1);return false;">返 回</button>
        </div>
    </form>
</block>